<?php
/** 
 * Created by RisingSun. 
 * User: MarkSpace 
 * Date: 20220306
 * Time: 11:05 
 */
return [
    'listen' => 'http://0.0.0.0:8585',
    'transport' => 'tcp',
    'context' => [],
    'name' => 'Api_Server',
    'count' => cpu_count() * 4,
    'user' => '',
    'group' => '',
    'reusePort' => false,
    'event_loop' => '',
    'stop_timeout' => 2,
    'pid_file' => base_path() . '/log/worker/ms.pid',
    'status_file' => base_path() . '/log/worker/ms.status',
    'stdout_file' => base_path() . '/log/worker/stdout.log',
    'log_file' => base_path() . '/log/worker/ms.log',
    'max_package_size' => 10 * 1024 * 1024,
    'crossdomain'=>true,
    'crossinfo'=>[
        'Access-Control-Allow-Origin: *',
        'Access-Control-Allow-Credentials: true',
        'Access-Control-Allow-Headers: *',
        'Access-Control-Allow-Methods: *',
    ],
    'debug' => false,
    'error_reporting' => E_ALL,
    'default_timezone' => 'Asia/Shanghai',
    'runtime_path' => base_path(). DIRECTORY_SEPARATOR . 'runtime',
    'debug_dirs' => ['api'],
    'max_request_restart'=>true,
    'max_request_limit'=>1000,
    'login_url'=>'/admin/login/index' //登陆返回地址
];
